package qc.module.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qc.module.demo.dto.student.ScoreDto;

import java.util.List;

@Service
public class StudentService {
    private ScoreService scoreService;


    @Autowired
    public void setScoreService(ScoreService scoreService) {
        this.scoreService = scoreService;
    }


    /**
     * 根据学号查询学生成绩
     *
     * @param studentNo 学号
     * @return 学生成绩集合
     * @author cgy
     * @since 2023/6/20
     */
    public List<ScoreDto> getScore(Integer studentNo) {

        return scoreService.queryByStudentNo(studentNo);
    }
}
